
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$info[0]['title']}</title>
    <meta name="keywords" content="{$info[0]['key']}">
    <meta name="description" content="{$info[0]['des']}">
    {css href="__INDEXCSS__/base.css"}
    {css href="__INDEXCSS__/style.css"}
    {js href="__INDEXJS__/jquery-1.11.0.js"}
    {js href="__INDEXJS__/myJavaScript.js"}
    <style>
          .bian24 {
            border: 1px solid #0094E0;
    background-color: #0094E0;
    width: 26px;
    height: 22px;
    line-height: 22px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    color: #FFFFFF;
        }
    </style>
</head>
<body>
<!-- 头-->
<div id="topArea">
    <div class="topArea">
        <div class="topAreaLeft" id="topAreaLeft">
            欢迎来到{$info[0]['title']}
        </div>
        <div class="topAreaRight" id="topAreaRight">
            <span><a onclick="AddFavorite(window.location,document.title)" href="javascript:;">加入收藏</a></span>
        </div>
    </div>
</div>
<!-- LOGO-->
<div id="topLogo">
    <div class="topLogo">
        <div class="logo left">
            <a href="#" title="加拿大28预测"> <img width="100%" src="{$info[0]['logo']}" alt="加拿大28预测"></a>
        </div>
    </div>
</div>
<div id="nav" class="nav">
    <div class="navMain">
        <ul>
            <li><a href="{:url('/index/',array('kjtype'=>$kjtype))}" >预测专区</a><em></em></li>
            <li><a href="{:url('/count/',array('kjtype'=>$kjtype))}">走势图</a></li>
            <li><a href="{:url('/number/',array('kjtype'=>$kjtype))}" class="selected">开奖分析</a></li>
        </ul>
    </div>
</div>
<div class="liadvert">
    {volist name="adv" key="k" id="vo" offset="0"}
    {if $vo['position'] == '顶部图片' and $vo['is_img'] == '是'}
    <p style='margin-top:10px;text-align:center'><a rel="nofollow" href="{$vo['url']}" target="_blank"><img style="width:100%" src="{$vo['img']}"></a></p>
    {/if}
    {/volist}
    <!--<p style='margin-top:10px;text-align:center'><a rel="nofollow" href="https://chat.meiqia.cn/widget/standalone.html?eid=8d02a6466722a29d9cb050d54a99ab59"><img style="width:100%" src="http://196939.com/01.png-->
    <!--"></a></p>-->
</div>
{volist name="adv" key="k" id="vo" offset="0"}
{if $vo['position'] == '顶部文字' and $vo['is_img'] == '否'}
<div class="navMain" style="width:999px;height:40px;line-height:40px;letter-spacing:2px;text-align:center;font-size:18px;font-weight:900;color:#fff;background-color:#E20618;margin-bottom: 8px;">
    <span><a href="{$vo['url']}" target="_blank">{$vo.text|raw}</a> </span>
</div>
{/if}
{/volist}
<div class="mainArea">
    <div class="xyMain">
        <div class="yingli">
            <ul>
                <li><span class="sTitle">选择开奖：</span> </li>
                <li class="{$kjtype == '2' ? 'selected' : ''}"> <a href="{:url('/number',array('kjtype'=>2))}">台湾28</a> </li>
                <li class="{$kjtype == '1' ? 'selected' : ''}"> <a href="{:url('/number',array('kjtype'=>1))}">加拿大</a> </li>
                <li class="{$kjtype == '3' ? 'selected' : ''}"> <a href="{:url('/number',array('kjtype'=>3))}">澳洲28</a> </li>

                {volist name="adv" key="k" id="vo" offset="0"}
                {if $vo['position'] == '开奖栏(文字)' and $vo['is_img'] == '否'}
                <li > <a href="{$vo['url']}" target="_blank">{$vo['text']}</a> </li>
                {/if}
                {/volist}
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </div>
        <div class="clear"></div>
        <div class="xyTime">
            距离第
            <strong class="red" id="maxNums">{$kjdata[0]['issue']+1}</strong>期开奖还有
            <span class="nowTime" id="nowTime"></span>
        </div>
        <div class="clear"></div>
        <input id="url28" type="hidden" value="/">
        <input id="category_id" type="hidden" value="1">
        <div id="xy28CountMain">
            <div class="autoguess">
                <div class="autoTop">
                    <div style=" height:30px; line-height:30px; font-size:16px; font-weight:bold; text-align:center;">
                        当前期开奖号码为：
                        <a href="javascript:;" style="color:red;">{$kjdata[0]['c4']}</a>
                    </div>
                </div>
            </div>
            <input id="autonum" type="hidden" value="10000">
            <input id="autopoint" type="hidden" value="1">
            <div class="result">
                <h2>分析结果 &gt;&gt;</h2>
                <div id="result">
                    <table>
                        <tbody>
                        <tr>
                            <td class="first_td" style="width:140px;">开奖号码</td>
                            <td class="second_td"><span class="haoma">{$kjdata[0]['c4']}</span></td>
                        </tr>
                        <tr>
                            <td>统计期数</td>
                            <td class="second_tds">400期</td>
                        </tr>
                        <tr>
                            <td>开奖次数</td>
                            <td class="second_tds">{$kjcs}次</td>
                        </tr>
                        <tr>
                            <td>开奖概率</td>
                            <td class="second_tds">{$kjgl}%</td>
                        </tr>
                        <tr>
                            <td>出<span class="haoma">{$kjdata[0]['c4']}</span>之后开奖</td>
                            <td class="second_tds"> 
                                {volist name="$kjhao" key="k" id="vo" offset="0"}
                                <span class="">{$vo}</span>
                                {/volist}
                            </td>
                        </tr>
                        <tr>
                            <td>出<span class="haoma">{$kjdata[0]['c4']}</span>之后组合</td>
                            <td class="second_tds"> <span class="haoma">大双</span> {$dscs}次， <span class="haoma">大单</span> {$ddcs}次， <span class="haoma">小单</span> {$xdcs}次， <span class="haoma">小双</span> {$xscs}次， </td>
                        </tr>
                        <tr>
                            <td>出<span class="haoma">{$kjdata[0]['c4']}</span>之后大小</td>
                            <td class="second_tds"> <span class="haoma">大</span> {$da}次， <span class="haoma">小</span> {$xiao}次， </td>
                        </tr>
                        <tr>
                            <td>出<span class="haoma">{$kjdata[0]['c4']}</span>之后单双</td>
                            <td class="second_tds"> <span class="haoma">单</span> {$dan}次， <span class="haoma">双</span> {$shuang}次， </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="bottom">
    <div class="bottomBg"></div>
    <!--<p class="cnzz" ></p>-->
    {volist name="adv" key="k" id="vo" offset="0"}
    {if $vo['position'] == '底部' and $vo['is_img'] == '否'}
    <p>{$vo['text']|raw}</p>
    {/if}
    {/volist}
</div>
{volist name="adv" key="k" id="vo" offset="0"}
{if $vo['position'] == '浮动' and $vo['is_img'] == '是'}
<a href="{$vo['url']}"><img alt="" src="{$vo['img']}" style="display: block;position: fixed;top: 580px;right: 1px;width: 65px;height: 60px;z-index:9999"></a>
{/if}
{/volist}
<script charset="UTF-8" id="LA_COLLECT" src="//demo.gblnews.cn/static/js/js-sdk-pro.min.js"></script>
<script>LA.init({id: "JqjyWg48GfvA05Zg",ck: "JqjyWg48GfvA05Zg", autoTrack: true, prefix: 'event'})</script>
<script>
    timeLoad({$kjdata[0]['issue']+1},{$kjdata['countDown']} );
    function timeLoad(nums, time) {
        time = time - 1;
        if (time < 0) {
            time = 0;
        }
        $("#maxNums").html(nums);
        var shtml = "";
        if (time == 0) {
            shtml = '<strong>0</strong>秒<a href="javascript:;" onclick="window.location.reload()">（点此刷新）</a>'
        } else {
            shtml = "<strong>" + time + "</strong>秒";
        }
        $("#nowTime").html(shtml);
        setTimeout('timeLoad(' + nums + ',' + time + ')', 1000);
    }
    function useload(){
        window.location.reload();
    }
    $(function () {

        $("#Submit1").click(function () {
            LoadAndGetNumber();
        })
        var tempVal= $("#hidNums").val();
        if (tempVal != "") {
            $("#numbers a").removeClass("selected");
            $("#numbers a").each(function () {
                if ($(this).attr("data") == tempVal) {
                    $(this).addClass("selected");
                    $("#numOne").addClass("numOne").html($(this).html());
                }
            });
        }
        $("#numbers a").click(function () {
            $("#numbers a").removeClass("selected");
            $(this).addClass("selected");
            $("#hidNums").val($(this).attr("data"));
            $("#numOne").addClass("numOne").html($(this).html());
        });
    })


    function LoadAndGetNumber() {
        var nums = $("#nums").val();
        if (isNaN(nums) || nums < 1) {
            alert("分析期数必须大于1期！");
            return;
        }

        var hidNums = $("#hidNums").val();
        if (isNaN(hidNums) || hidNums < 0 || hidNums == "") {
            alert("选择数字错误，请选择需要分析的数字！");
            return;
        }

        var autonum = $("#autonum").val();
        var autopoint = $("#autopoint").val();
        if (nums > 400) {
            alert("分析期数最大为400期！");
        } else {
            window.location.href= "{:url('/number/')}"+"?kjtype="+{$kjtype}+"&num="+hidNums + "&y=" + nums;
        }
    }

    function checkNumber(e) {
        if (isFirefox = navigator.userAgent.indexOf("Firefox") > 0) {  //FF
            if (!((e.which >= 48 && e.which <= 57) || (e.which >= 96 && e.which <= 105) || (e.which == 8) || (e.which == 46)))
                return false;
        } else {
            if (!((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || (event.keyCode == 8) || (event.keyCode == 46)))
                event.returnValue = false;
        }
    }

</script>
</body>
</html>